package the.offer;

import the.offer.DataStructure.Impl.Array;

public class Main {

    public static void main(String[] args) {
        Array<Integer> array = new Array<>(20);
        for (int i = 0; i < 5; i++)
            array.addLast(1);
        System.out.println(array.toString());
        for (int i = 0; i < 5; i++)
            array.addLast(2);
        System.out.println(array.toString());
        array.removeAllElement(2);
        System.out.println(array.toString());
        System.out.println(array.findFirst(1));
        System.out.println(array.findLast(1));
    }
}
